export const tableOption = {
  border: true,
  index: true,
  indexLabel: "序号",
  stripe: true,
  menuAlign: "center",
  align: "center",
  searchMenuSpan: 6,
  dialogWidth: "50%",
  dialogEscape: false,
  dialogClickModal: false,
  column: [
    {
      type: "input",
      label: "设备名称",
      prop: "deviceName",
      rules: [
        {
          required: true,
          message: "请输入设备名称",
          trigger: "blur"
        }
      ]
    },
    {
      type: "input",
      label: "设备编号",
      prop: "deviceNumber",
      rules: [
        {
          required: true,
          message: "请输入设备编号",
          trigger: "blur"
        }
      ]
    },
    {
      type: "input",
      label: "型号",
      prop: "typeNumber",
      rules: [
        {
          required: true,
          message: "请输入设备型号",
          trigger: "blur"
        }
      ]
    },
    {
      type: "input",
      label: "技术规格",
      prop: "specification",
      rules: [
        {
          required: true,
          message: "请输入技术规格",
          trigger: "blur"
        }
      ]
    },
    {
      type: "input",
      label: "数量",
      prop: "amount",
      rules: [
        {
          required: true,
          message: "请输入数量,类型为数字",
          trigger: "blur"
        },
        {

        }
      ]
    },
    {
      type: "input",
      label: "生产厂家",
      prop: "manufacturer",
      rules: [
        {
          required: true,
          message: "请输入生产厂家",
          trigger: "blur"
        }
      ]
    },
    {
      label: "设备状态",
      type: "select",
      dicUrl: "/admin/dict/type/device_status",
      formslot: true,
      search: true,
      prop: "deviceStatus",
      rules: [
        {
          required: true,
          message: "请选择设备状态",
          trigger: "change"
        }
      ]
    },
    // {
    //   type: "input",
    //   label: "设备批号",
    //   prop: "deviceBatchNumber",
    //   rules: [
    //     {
    //       required: true,
    //       message: "请输入设备批号",
    //       trigger: "blur"
    //     }
    //   ]
    // },
    {
      type: "input",
      label: "安装地点",
      prop: "installLocation",
      rules: [
        {
          required: true,
          message: "请输入安装地址",
          trigger: "blur"
        }
      ]
    },
    {
      type: "input",
      label: "制造时期",
      editDisplay: false,
      addDisplay: false,
      prop: "createDate"
    },
    {
      type: "input",
      label: "设备完好率(%)",
      prop: "serviceabilityRate",
      rules: [
        {
          required: true,
          message: "请输入设备完好率",
          trigger: "blur"
        }
      ]
    },
    {
      type: "textarea",
      label: "备注",
      prop: "remarks",
      rules: [
        {
          required: true,
          message: "请输入备注",
          trigger: "blur"
        }
      ]
    },
  ]
};
